// @import './variables.scss'; // Already imported in style-resources-loader
// @import './mixins.scss'; // Already imported in style-resources-loader
@import './transition.scss';
@import './svgicon.scss';

/* Global scss */

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

html {
  height: 100%;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

a,
a:focus,
a:hover {
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  @include clearfix;
}

label {
  font-weight: 700;
}

.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

// Refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

aside {
  background: #eef1f6;
  color: #2c3e50;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    min-width: 60px;
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;
  }
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.no-padding {
  padding: 0px !important;
}


.no-border-table td, .no-border-table th {
  border-bottom: none !important;
}

.branches-table {

  tbody tr:hover {
    color: red;
    cursor: pointer;
  }

  td {
    padding: 2px 0;
  }

  td, th {
    .cell {
      padding-left: 4px;
    }
  }

  &::before {
    content: "";
    position: absolute;
    //background-color: #e6ebf5;
    z-index: 0;
  }
}

.numbers-container {
  background: #e3e3e3;
  padding: .5em 0;

  &.horizontal {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    .overview-number {
      min-width: 100px;
    }
  }

  &.vertical {
  }

  .overview-number {
    margin: 1em;

    .number-box {
      height: 50px;
      border: 1px solid gray;
      display: flex;
      justify-content: center;
      align-items: center;

      &.round {
        border-radius: 50%;
      }

      .num-and-unit {
        display: flex;
        align-items: baseline;
        color: #444444;

        .num-text {
          font-size: 1.2em;
          font-weight: bold;
        }

        .num-unit {
          font-size: .8em;
          padding-left: .2em;
        }

        &.red {
          color: rgba(255, 0, 0, .7);;
        }

        &.green {
          color: green;
        }
      }

    }

    .number-desc {
      margin-top: 4px;
      text-align: center;
    }
  }
}
